<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>jQuery滚动预览缩略图特效插件</title>

	<link rel="stylesheet" type="text/css" href="css/ThScroll.css">
	
	<style>
		
		#content-6 {
			background-color: transparent;
		}
		
	</style>
</head>
<body>
	<div class="htmleaf-container">
		<div id="demo">
			<section id="examples">
				<div id="content-6" class="content" style="height: 200px;width:900px"></div>
			</section>
		</div>
	</div>
	
	<script src="js/jquery-1.11.0.min.js"></script>
	<script src="js/ThScroll.js"></script>
	<script>window.jQuery || document.write('<script src="../js/minified/jquery-1.11.0.min.js"><\/script>')</script>
	
	
	<script>
		(function($){
			$(window).load(function(){
			
				var data = [
					{image:"thumbnails/img1.jpg"},
					{image:"thumbnails/img2.jpg",video:"http://127.0.0.1/cyai/assets/ckplayer/material/test.mp4"},
					{image:"thumbnails/img3.jpg"},
					{image:"thumbnails/img4.jpg",video:"http://127.0.0.1/cyai/assets/ckplayer/material/test.mp4"},
					{image:"thumbnails/img5.jpg"},
					{image:"thumbnails/img6.jpg"},
					{image:"thumbnails/img7.jpg"},
					{image:"thumbnails/img8.jpg"},
					{image:"thumbnails/img9.jpg"},
					{image:"thumbnails/img10.jpg"}
				];
			
				function imgClickFunc(obj){
					console.log(obj);
					alert("imgClck");
				}
			
				ThScroll.initFromJsonArr(data,{selector:"#content-6",imgItemClickCb:imgClickFunc});
				
			});
			
		})(jQuery);
	</script>
</body>
</html>